-- NOTES
--    1) each model-table must define EXACTLY one root-piece in its "pieces" sub-table
--    2) the script MUST return exactly one model-table (which may be named arbitrarily)
--    2) piece offsets MUST be specified in global model-space
--    3) the .obj file MUST specify vertices in local piece-space per object
--    4) the tree must reference ONLY object names defined in the .obj file
--    5) either a string or a number key can introduce a piece-table, see the two examples
--    6) a piece-table key may NOT be "name" or "offset" (these are reserved keywords)

core_commander = {
	pieces = {
		pelvis = {
			offset = {0.0, 34.0, 0.0},

			torso = {
				offset = {7.7157217504009e-08, 2.4599997997284, 0.72614061832428},

				head = {
					offset = {-0, 8.9999990463257, 1.0390094518661},
				},

				luparm = {
					offset = {14.549997329712, 6.6599988937378, -0.46099036931992},

					nanolathe = {
						offset = {-0.14999996125698, -8.6999979019165, -0.11999852955341},

						lfirept = {
							offset = {0.27103954553604, 0, 15.991342544556},
						},
						nanospray = {
							offset = {-0.2710394859314, 0, 16.262382507324},
						},
						nanolath = {
						},
					},
				},
				ruparm = {
					offset = {-14.549997329712, 6.6599988937378, -0.46099036931992},

					biggun = {
						offset = {0.14999996125698, -8.6999979019165, -0.11999852955341},

						rbigflash = {
							offset = {-0, 4.2366185188293, 23.386909484863},
						},
					},
				},
			},
			lthigh = {
				offset = {5.0999999046326, -5.489999294281, 0.72614192962646},

				lleg = {
					offset = {-0, -8.8499984741211, 7.823989562894e-07},

					l_foot = {
						offset = {-0, -15.628270149231, -1.0535024404526},
					},
				},
			},
			rthigh = {
				offset = {-5.0999999046326, -5.4900002479553, 0.7261415719986},

				rleg = {
					offset = {-0, -8.8499984741211, 1.1406737030484e-06},

					r_foot = {
						offset = {-0, -15.628270149231, -1.0535024404526},
					},
				},
			},

			orbit = {
				orbitfire = {
				},
			},

			landpoint = {
				offset = {-0, -35, 0},
			},
		},
	},

	radius = 25.594400,
	height = 84.369293,
	midpos = {-0.002754, 25.748957, 2.639958},
	tex1 = "c_heavytank_texture.png",
	-- includes the root-piece
	numpieces = 20,
}



core_commander_alt = {
	pieces = {
		[1] = {
			name = "pelvis",
			offset = {0.0, 34.0, 0.0},

			[2] = {
				name = "torso",
				offset = {7.7157217504009e-08, 2.4599997997284, 0.72614061832428},

				[3] = {
					name = "head",
					offset = {-0, 8.9999990463257, 1.0390094518661},
				},

				[4] = {
					name = "luparm",
					offset = {14.549997329712, 6.6599988937378, -0.46099036931992},

					[5] = {
						name = "nanolathe",
						offset = {-0.14999996125698, -8.6999979019165, -0.11999852955341},

						[6] = {
							name = "lfirept",
							offset = {0.27103954553604, 0, 15.991342544556},
						},
						[7] = {
							name = "nanospray",
							offset = {-0.2710394859314, 0, 16.262382507324},
						},
						[8] = {
							name = "nanolath",
						},
					},
				},
				[9] = {
					name = "ruparm",
					offset = {-14.549997329712, 6.6599988937378, -0.46099036931992},

					[10] = {
						name = "biggun",
						offset = {0.14999996125698, -8.6999979019165, -0.11999852955341},

						[11] = {
							name = "rbigflash",
							offset = {-0, 4.2366185188293, 23.386909484863},
						},
					},
				},
			},
			[12] = {
				name = "lthigh",
				offset = {5.0999999046326, -5.489999294281, 0.72614192962646},

				[13] = {
					name = "lleg",
					offset = {-0, -8.8499984741211, 7.823989562894e-07},

					[14] = {
						name = "l_foot",
						offset = {-0, -15.628270149231, -1.0535024404526},
					},
				},
			},
			[15] = {
				name = "rthigh",
				offset = {-5.0999999046326, -5.4900002479553, 0.7261415719986},

				[16] = {
					name = "rleg",
					offset = {-0, -8.8499984741211, 1.1406737030484e-06},

					[17] = {
						name = "r_foot",
						offset = {-0, -15.628270149231, -1.0535024404526},
					},
				},
			},

			[18] = {
				name = "orbit",

				[19] = {
					name = "orbitfire",
				},
			},

			[20] = {
				name = "landpoint",
				offset = {-0, -35, 0},
			},
		},
	},

	radius = 25.594400,
	height = 84.369293,
	midpos = {-0.002754, 25.748957, 2.639958},
	tex1 = "c_heavytank_texture.png",
	numpieces = 20,
}

return core_commander_alt
